package com.ruicar.afs.cloud.filecenter.service;

import org.springframework.core.Ordered;

/**
 * AfsFileProcessor
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date create on 2020-05-28 20:09:44
 * @since 1.0
 */
public interface AfsFileProcessor extends Ordered {

    /**
     * Register id string
     * <p>Description: </p>
     *
     * @return the string
     */
    String registerId();


    void process(String fileMd5,String guid);



    static AfsFileProcessor DEFAULT_PROCESS = new AfsFileProcessor(){
        @Override
        public String registerId() {
            return "void";
        }

        @Override
        public void process(String fileMd5,String guid) {

        }

        @Override
        public int getOrder() {
            return 0;
        }
    } ;
}
